package com.shenxuchen.crm.constant;

import com.fasterxml.jackson.databind.ObjectMapper;

import java.text.SimpleDateFormat;
import java.util.HashMap;
import java.util.Map;

public interface Constants {
    String COOKIE_USERNAME = "H78OlKJ";
    String COOKIE_PASSWORD = "H6REF90";
    String LOGIN_USER = "loginUser";

    interface MSG {
        String ERR_USERNAME_OR_PWD = "账号或密码不正确！";
        String ACCOUNT_LOCK = "账号已锁定！";
        String ACCOUNT_EX = "账号已过期！";
        String IP_NOT_ALLOW = "当前IP不允许访问！";
    }

    SimpleDateFormat SDF19 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    SimpleDateFormat SDF10 = new SimpleDateFormat("yyyy-MM-dd");

    ObjectMapper JACKSON = new ObjectMapper();

    interface RESP {
        Map SUC = new HashMap() {{
            put("success", true);
        }};

        Map SUC_MSG = new HashMap() {{
            put("success", true);
            put("message", "操作成功！");
        }};
    }
}
